<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>语文教师网-百度文库免费代下载</title>
  <meta name="description" content="语文教师网，语文资源，百度文库，百度文库代下载，免费下载，免下载券，语文ppt，语文课件，语文试卷" />
<meta content="语文教案,语文试卷,语文语文课件,中小学语文教学,在线阅读,文库下载,免下载券,yuwen, jiaoan, lunwen, kejian, zhongwen, hanyu" name="keywords" />
    <link rel="stylesheet" href="__ADMIN__/static/layui/css/layui.css" />
    <style>
        #down-head{
            background: url(__ADMIN__/static/images/down_bg1.jpg) no-repeat 0px -165px;
            background-size: cover;
            min-height: 400px;
            width: 100%;
            padding-top: 110px;
        }
        .down-title{
            text-align: center;
        }
        .down-title h1{
            color: #fff;
            font-size: 50px;
            font-family: 'Roboto', sans-serif;
            font-weight: 400px;
            margin: 0;
        }
        .down-desc{
            text-align: center;
            margin: 2em 0 4em;
            font-size: 22px;
            color: #fff;
            margin-bottom: 66px;
        }
        .down-qq-title{
            text-align: center;
            margin: 2em 0 4em;
            font-size: 18px;
            color: #fff;
            margin-bottom: 66px;
        }
        .down-input input{
            width: 87%;
            float: left;
        }
        #down-btn{
            float: right;
        }
        #grid div{
            text-align: center;
        }
        #grid div .icon i{
            font-size: 40px;
        }
        #grid div .title{
            color: #292C34;
            margin: 1em 0 0;
            font-size: 18px;
            font-family: 'Roboto', sans-serif;
        }
        #grid div .desc{
            color: #97999B;
            margin: .5em 0;
            font-size: 14px;
            line-height: 25px;
        }
        #eq div p{
            margin: 15px 0px;
            font-size: 16px;
            color: #333;
        }
        #footer{
            height: 100px;
            background: #292C34;
            margin-top: 50px;
            line-height: 100px;
        }
        #footer p{
            color: #97999B;
            margin: 0;
            font-size: 15px;
        }
        .login-register{
            position: absolute;
            right: 30px;
            top:20px;
        }
        .login-register p a{
            color: #fff;
            margin: 0px 10px;
        }
    </style>
</head>
  
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=65871947" charset="UTF-8"></script>
<body>
<div id="down-head">
    <div class="layui-container">
        <div class="layui-row">
            <div class="layui-col-md6 layui-col-md-offset3">
                <div class="down-title">
                    <h1>百度文库免费下载！</h1>
                </div>
            </div>
            <div class="layui-col-md6 layui-col-md-offset3">
                <div class="down-desc">
                    不让真理淹没在无聊繁琐的世事中！
                </div>
            </div>
            <div class="layui-col-md8 layui-col-md-offset2">
                <div class="down-input">
                    <form class="layui-form" action="">
                        <input type="text" name="wenku_url" required  lay-verify="required" placeholder="复制百度文库网页地址，例：https://wenku.baidu.com/view/5b9a6625f242336c1fb95e0d.html" autocomplete="off" class="layui-input">
                        <button class="layui-btn" lay-submit id="down-btn">一键代下</button>
                    </form>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-col-md12">
                <div class="down-qq-title">
                    <p>请大家珍惜下载次数，本网站的自动代下仅用于教学及学习研究之用。</p>
                </div>
            </div>
        </div>
    </div>
    <div class="login-register">
        <p>{if (substr_count($user['name'],".")>=3)}<a href="{:url('Login/index')}">登录/注册</a>{elseif (isset($user) && $user) /}<a href="{:url('run/Index/down_page')}">{$user['name']}</a>{else /}<a href="{:url('Login/index')}">登录/注册</a>{/if}</p>
    </div>
</div>
<div class="layui-container" style="margin-top: 50px;">
    <div class="layui-row" id="grid">
        <div class="layui-col-md4 layui-col-md4 layui-col-md4">
            <p class="icon"><i class="layui-icon">&#xe679;</i></p>
            <p class="title">第一步</p>
            <p class="desc">Copy links to download</br>
                复制需要下载的百度文库网址</p>
        </div>
        <div class="layui-col-md4 layui-col-md4 layui-col-md4">
            <p class="icon"><i class="layui-icon">&#xe601;</i></p>
            <p class="title">第二步</p>
            <p class="desc">Click the download button</br>
                点击下载按钮</p>
        </div>
        <div class="layui-col-md4 layui-col-md4 layui-col-md4">
            <p class="icon"><i class="layui-icon">&#xe735;</i></p>
            <p class="title">第三步</p>
            <p class="desc">Wait 5 seconds to complete download</br>
                等待5秒钟，完成下载</p>
        </div>
    </div>
</div>
<div class="layui-container" style="margin-top: 50px;">
    <blockquote class="layui-elem-quote">常见问题</blockquote>
    <div class="layui-row" id="eq">
        <div class="layui-col-md12">
            <p>1、如何下载百度文库付费文档？   答：本网站仅提供下载券文档自动代下载，付费文档无法下载，请到百度网站付费下载。</p>
            <p>2、没有财富值在哪里可以下载？   答：使用本站自动代下载功能，免财富值下载文档。</p>
            <p>3、怎么免费下载百度文库文档？   答：使用百度文库一键下载功能，免下载券下载文档。</p>
            <p>4、网站是如何实现免费下载吗？   答：办法就是通过我付费供您免费使用。</p>
            <p>5、提示已达下载上限，下载不了怎么办？   答：请联系管理员免费领取卡密提升会员权限。</p>
            </div>
    </div>
</div>
<div id="footer">
    <div class="layui-container" style="margin-top: 50px;">
        <div class="layui-row">
            <p>Copyright © 2018  免责声明：本站所有资源均收集自互联网，没有提供文档资源存储，版权属于原作者!仅供学习参考,有任何疑问请联系我们</p>
        </div>
    </div>
</div>

<script type="text/javascript" src="__ADMIN__/static/layui/layui.js"></script>
<script type="text/javascript">
    layui.use(['layer', 'jquery'], function() {
        var $ = layui.jquery;
        $("#down-btn").click(function () {
            var wenku_url = $("input[name='wenku_url']").val();
            $.ajax({
                type: "POST",
                async: true,
                url: "{:url('Wenku/jiexi')}",
                data: {scurl: wenku_url},
                dataType: "json",
                success: function (res) {
                    if (res && res['status'] == 200) {
                        layer.msg(res.msg, {icon: 1}, function () {
                            window.location.href = res['data'];
                            layer.closeAll();
                        });
                    } else {
                        layer.msg(res.msg, {icon: 2}, function () {
                            layer.closeAll();
                            if (res.msg == '您的账户已过期、请充值！') {
                                window.location.href = "{:url('account/lists')}";
                            }else if (res.msg == '亲，今日已达到下载上限！。。。。。。') {
                                window.location.href = "{:url('Login/index')}";
                            }
                        });
                    }
                },
                beforeSend: function () {
                    var index = layer.load(1, {
                        shade: [0.1, '#ccc'] //0.1透明度的白色背景
                    });
                },
                complete: function () {
                }
            });
            return false;
        });
    });
</script> 

                
</body>
</html>